<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            margin: 100px auto;
            width: 300px;
            border: 1px solid #333;
            overflow: hidden;
            /* 使图片缩放  不超过边界*/
        }
        img{
            width: 100%;
            vertical-align: bottom;
            transition: all 2s;
        }
        img:hover{
            transform:scale(1.5);   /* 缩放*/
            transform:skew(30deg) ;  /* 倾斜*/
        }
    </style>
</head>
<body>
    <div>
        <img src="小米官网/images/banner3.png">
    </div>
</body>
</html>